using namespace std;
#include<iostream>
#include<unistd.h>
#include<signal.h>
void handler(int sig)
{
    cout<<"receive abort signal "<<sig<<endl;
}
int main()
{
    signal(SIGABRT,handler);
    while(true)
    {
        abort();
        sleep(2);
    }
}